#include <iostream>
#include <string>
#include <cstring>

int main()
{
    // 比较两个string对象
    std::string s1, s2;
    std::cout << "Please intput two strings: " << std::endl;
    std::cin >> s1 >> s2;
    if(s1 > s2)
    {
        std::cout << "s1 > s2" << std::endl;
    }
    else if(s1 < s2)
    {
        std::cout << "s1 < s2" << std::endl;
    }
    else
    {
        std::cout << "s1 = s2" << std::endl;
    }
    // 比较两个c风格字符串
    char str1[100], str2[100];
    std::cout << "Please intput tow char: " << std::endl;
    std::cin >> str1 >> str2;

    if(strcmp(str1, str2) > 0)
    {
        std::cout << "str1 > str2" << std::endl;
    }
    else if(strcmp(str1, str2) < 0)
    {
        std::cout << "str1 < str2" << std::endl;
    }
    else
    {
        std::cout << "str1 = str2" << std::endl;
    }


    return 0;
    
}